class UserController < ApplicationController
  
  #登录
  #  def login
  #    session[:user]=nil
  #    if request.post?
  #      user=User.find_by_name_and_password(
  #        params[:user][:name],
  #        params[:user][:password])
  #      if user
  #        session[:user]=user
  #        redirect_to(:controller => "/admin/album")
  #      else
  #        flash[:notice]= "无效的用户名/密码"
  #        redirect_to(:controller => :user,:action=>:login)
  #      end  
  #    end
  #  end
  #  
  #  def logout
  #    reset_session
  #    redirect_to(:controller => "index" )
  #  end
end
